import { createClient } from 'redis'

const redisClient = createClient({
    url: process.env.REDIS_URL,
});

redisClient.connect().then(() => {
    console.log('Connected to Redis');
});

redisClient.on('error', (err) => {
    console.log('Redis error:', err);
});

export default redisClient